package com.eascs.web.o2o.mq.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.web.o2o.mq.dao.RabbitMqDao;
import com.eascs.web.o2o.mq.entity.LogEntity;

@Service
public class LogService {
	private static final Logger logger = LoggerFactory.getLogger(LogService.class);

	@Autowired
	private RabbitMqDao rabbitMqDao;

	
	public LogEntity findEntity(String loanapplyNo, String transType, int status) {
		String sql = "select * from o2o_bank_trans_log where loanapply_no = ? and trans_type = ? and result_type = ?";
		return rabbitMqDao.findEntityForService(sql, LogEntity.class, new Object[] { loanapplyNo, transType, status });
	}
}
